'''
Created on 07/03/2012

@author: Caio Alves
'''
from notas.models import Noticias, Galeria
from django.contrib import admin


class NoticiaAdmin(admin.ModelAdmin):
    list_display = ['titulo','categoria','publicacao']
    def categoria(self,obj):
        return obj.get_chamada_display()
        
class GaleriaAdmin(admin.ModelAdmin):
    pass

admin.site.register(Noticias, NoticiaAdmin)
admin.site.register(Galeria,GaleriaAdmin)
